package com.qf.service.impl;

import com.qf.dao.PatientDao;
import com.qf.pojo.Patient;
import com.qf.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PatientServiceImpl implements PatientService {
    @Autowired
    private PatientDao patientDao;
    @Override
    public List<Patient> select(Patient patient) {
        return patientDao.select(patient);
    }

    @Override
    public int insert(Patient patient) {
        return patientDao.insert(patient);
    }

    @Override
    public int update(Patient patient) {
        return patientDao.update(patient);
    }

    @Override
    public int delete(List<Integer> patient) {
        return patientDao.delete(patient);
    }
}
